using System.Collections.ObjectModel;
using System.Linq;
using AzureContrib.WindowsAzure.ServiceRuntime;

namespace AzureContrib.WindowsAzure.Tests.Mocks
{
	/// <summary>
	/// A mock <see cref="IRole"/>.
	/// </summary>
	public class MockRole : IRole
	{
		/// <summary>
		/// A mock <see cref="IRole"/>.
		/// </summary>
		public string Name
		{
			get { return "MockRole Name"; }
		}

		/// <summary>
		/// A mock <see cref="IRole"/>.
		/// </summary>
		public ReadOnlyCollection<IRoleInstance> Instances
		{
			get { return new ReadOnlyCollection<IRoleInstance>(Enumerable.Empty<IRoleInstance>().ToList()); }
		}
	}
}